<?php
namespace Wx\Controller;
use Think\Controller;
class TestController extends Controller {
	
	//用户授权获取code
    public function index(){
			$access_token = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid='.C('WX_API.appid').'&secret='.C('WX_API.secret'); 
			$access_msg = json_decode(file_get_contents($access_token));
			dump($access_msg);
	}
}